<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            li.current{
                color: red;
            }
            div{
                display: none;
            }
            div.current{
                display: block;
            }
        </style>
    </head>
    <body>
        <ul>
            <li class="current">新闻</li>
            <li>娱乐</li>
            <li>电影</li>
            <li>事实</li>
        </ul>
        <section>
            <div class="current">新闻内容</div>
            <div>娱乐内容</div>
            <div>电影内容</div>
            <div>事实内容</div>
        </section>
        <script src="https://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js">
        </script>
        <script>
            $('ul li').click(function(){
                $(this).addClass('current');
                $(this).siblings().removeClass('current')
                var n=$(this).index()
                $('section div').eq(n).show()
                $('section div').eq(n).siblings().hide()
            })
        </script>
    </body>
</html>